package DAO;

import DAOOracle.OracleDAOFactory;

public abstract class DAOFactory {

    public static final int ACCESS = 1;
    public static final int MYSQL = 2;
    public static final int ORACLE = 3;

    public abstract DAODomicilio getDomicilioDAO();

    public abstract DAOObraSocial getObraSocialDAO();
    public abstract DAOPuestoTrabajo getPuestoTrabajoDAO();

    public abstract DAOEmpresa getEmpresaDAO();
    public abstract DAOMedico getMedicoDAO();
    public abstract DAOPaciente getPacienteDAO();

    public static DAOFactory getDAOFactory(int type) {
        switch (type) {
            case ORACLE:
                return new OracleDAOFactory();

            //case MYSQL:  return new MySqlDAOFactory();

            default:
                return null;
        }
    }
}
